// 获取员工信息
export const getStaffInfo = `
query($staff_id:Int){
  getStaffInfo(staff_id:$staff_id){
    id
    name
    avatar
    status_text
    status
    fill_name
    fill_id
    delevery_id
    ban_id
  }
}
`;
// 获取我的数据
export const getMyData = `
query($staff_id:Int,$type:String){
  getMyData(staff_id:$staff_id,type:$type){
    amount_statistics{
        name
        value
    }
    shouyi_statistics{
        name
        value
    }
    add_user_statistics{
        name
        value
    }
    days
    amount_data
    shouyi_data
    add_user_data
    shuju{
        amount
        shouyi
        add_user_nums
    }
  }
}
`;
// 团队数据
export const getTeamData = `
query($staff_id:Int,$type:String){
  getTeamData(staff_id:$staff_id,type:$type){
    amount_data
    shouyi_data
    add_user_data
    shuju{
        amount
        shouyi
        add_user_nums
    }
  }
}
`;
// 活动数据
export const getActivity = `
query{
  getActivity{
    id
    name
    type
    color
  }
}
`;
//公告数据
export const getNotice = `
query($staff_id:Int,$page:Int){
  getNotice(staff_id:$staff_id,page:$page){
    list{
      id
      title
      subtitle
      createtime
  }
  total
  lastpage
  }
}
`;
// 消息数据
export const getMessage = `
query($staff_id:Int,$page:Int){
  getMessage(staff_id:$staff_id,page:$page){
    list{
      id
      title
      type
      is_see
      image
      createtime
    }
    total
    lastpage
  }
}
`;
// 获取加注机列表
export const getFillList = `
query($delivery_id:Int){
  getFillList(delivery_id:$delivery_id){
    id
    fill_id
    fill_name
    staff_id
    staff_name
  }
}
`;
// 获取加注机列表
export const getFillLists = `
query{
  getFillList{
    id
    name
  }
}
`;
// 各种奖励列表
export const getStaffReward = `
query($staff_id:Int,$start:String,$end:String){
  getStaffReward(staff_id:$staff_id,start:$start,end:$end){
    id
    name
    money
  }
}
`;
// 奖励明细
export const getStaffRewardLog = `
query($staff_id:Int,$start:String,$end:String,$id:Int){
  getStaffRewardLog(staff_id:$staff_id,start:$start,end:$end,id:$id){
    list{
      id
      money
      memo
      createtime
      driver_name
  }
  lastpage
  total
  money
  }
}
`;
// 服务站列表
export const getServiceAreaList = `
query{
  getServiceAreaList{
    id
    name
    address
  }
}
`;